<?php
  $objCurrency = new Zend_Currency();
  $strValorFinal = $objCurrency->setValue($this->strPreco);
?>
<script type="text/javascript">
  $('.parcelas').click(function(){
    var strUrl = '<?=$this->baseUrl?>/matriculas/load-parcelas-ajax/idParcela/' + $(this).val();
    $('#listaParcelas').load(strUrl);  
  });
</script>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="right" class="label" style="width: 15%">Preço:</td>  
    <td align="left" class="space-bottom">
      <input name="nr_valor_final" id="nr_valor_final" maxlength="120" style="width: 150px;" value="<?php echo $strValorFinal;?>"/>
    </td>                      
  </tr>
  <tr>  
    <td align="center" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">
      <table border="0" align="center" cellpadding="0" cellspacing="0" width="70%">
        <thead> 
          <tr> 
            <th class="title-list" style="width: 7%"></th> 
            <th class="title-list">Condição</th> 
            <th class="title-list">Valor</th>  
          </tr> 
        </thead> 
        <tbody>
          <?php               
            foreach($this->arrParcelas as $strParcela => $strValor){
              ?>
              <tr>
                <td class="result-list">
                  <input type="radio" name="ds_parcela" id="ds_parcela" class="parcelas" value="<?php echo $strParcela?>_<?php echo $strValor?>_<?php echo $this->intIdModulo?>"/>
                </td>
                <td class="result-list" style="text-align: left;">
                  <?php 
                    if($strParcela == 1)
                      echo 'À VISTA';   
                    else
                      echo $strParcela . 'X';
                  ?>
                </td>
                <td class="result-list">
                  <?php echo $objCurrency->setValue($strValor);?>
                </td>
              </tr>
              <?php 
            }
          ?>    
        </tbody>
      </table>
    </td>
  </tr>
</table>  
    
    